export default {
    getUserinfo(state) {
        return state.userinfo;
    },
    isVip(state) {
        return state.userinfo && state.userinfo.isvip === 1;
    },
    isAdmin(state) {
        return state.userinfo && state.userinfo.isadmin === 1;
    },getToken(state) {
        return state.userinfo && state.userinfo.token ? state.userinfo.token : '';
    },getRemumber(state) {
        return state.remumber;
    }
}
